/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.yuhanginfo.modules.sys.entity;

import org.hibernate.validator.constraints.Length;

import com.yuhanginfo.common.persistence.DataEntity;

/**
 * 商品_物料Entity
 * @author yinhao
 * @version 2017-09-21
 */
public class GoodsMateriel extends DataEntity<GoodsMateriel> {
	
	private static final long serialVersionUID = 1L;
	private String goodsCode;		// 商品号
	private String materielCode;		// 物料号
	
	public GoodsMateriel() {
		super();
	}

	public GoodsMateriel(String id){
		super(id);
	}

	@Length(min=0, max=30, message="商品号长度必须介于 0 和 30 之间")
	public String getGoodsCode() {
		return goodsCode;
	}

	public void setGoodsCode(String goodsCode) {
		this.goodsCode = goodsCode;
	}
	
	@Length(min=0, max=30, message="物料号长度必须介于 0 和 30 之间")
	public String getMaterielCode() {
		return materielCode;
	}

	public void setMaterielCode(String materielCode) {
		this.materielCode = materielCode;
	}
	
}